<?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
date_default_timezone_set ( 'prc' );
class Product extends CI_Controller {
	public function __construct() {
		parent::__construct ();
	}
	 /*
	 * 得到所有上架商品的信息(商品自动完成功能)
	 */
	 public function getShowProduct() {
    	$name = $this->input->post('name');
    	$this->load->model ( 'product_model' );
    	$data=$this->product_model->get_show_product_by_name ( $name );
    	return_json_data($data);
    }
}